<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends baseController {
    public function loadView($temp) {
        if (!isset($temp["data"]))
            $temp["data"] = '';
        $this->load->view("index", $temp);
    }
    
	public function index()
	{
        $this->session->unset_userdata('selectedcategory');
        $this->_data["template"] = 'home';
        $this->_data["data"] = $this->entryModel->get_order_by(7, 'id', 'desc');
        $this->loadView($this->_data);
	}
}